<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/13
  Time: 16:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<style>
    .box {
        width: 960px;
        margin-top: 20px;
        overflow: hidden;
    }
    .animate {
        padding-left: 20px;
        line-height: 23px;
        font-size: 13px;
        color: white;
        display: inline-block;
        white-space: nowrap;
        animation: 20s wordsLoop linear infinite normal;
        opacity: 80%;
    }
    @keyframes wordsLoop {
        0% {transform: translateX(960px);
            -webkit-transform: translateX(960px);
        }
        100% {
            transform: translateX(-100%);
            -webkit-transform: translateX(-100%);
        }
    }
    @-webkit-keyframes wordsLoop {
        0% {
            transform: translateX(960px);
            -webkit-transform: translateX(960px);
        }
        100% {
            transform: translateX(-100%);
            -webkit-transform: translateX(-100%);
        }
    }
</style>
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="images/y.jpg" class="radius-circle rotate-hover" height="50" alt=""/>后台管理中心</h1>
    </div>
    <div class="head-l"><a class="button button-little bg-green" href="" target="_blank"><span class="icon-home"></span>
        前台首页</a> &nbsp;&nbsp;<a href="##" class="button button-little bg-blue"><span class="icon-wrench"></span>
        清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red" href="login.html"><span
            class="icon-power-off"></span> 退出登录</a></div>
    <div class="box">
        <p class="animate">
            欢迎登录&nbsp;${userSession.userName}
        </p>
    </div>
</div>
<div class="leftnav">
   <%-- <c:if test="${fn:contains(functionList.function.functionName, '用户')}">  <h2><span class="icon-user"></span>用户管理</h2></c:if>---%>
    <div class="leftnav-title"><strong><span class="icon-list"></span>系统管理</strong></div>

<%--            <h2><span class="icon-user"></span>用户管理</h2>--%>
               <c:forEach items="${functionList}" var="functionList">
                   <c:if test="${empty functionList.fatherFunction}">
                   <h2><span class="icon-gift"></span>${functionList.functionName}</h2>
                       <ul style="display:none">
                       <c:forEach items="${functionList1}" var="function">
                           <c:if test="${function.functionFatherId==functionList.functionId}">
                               <li><a href="${function.functionAddress}" target="right"><span
                                       class="icon-caret-right"></span>${function.functionName}</a></li>
                           </c:if>
                       </c:forEach>
                       </ul>
                   </c:if>
               </c:forEach>



<%--    <h2><span class="icon-user"></span>用户管理</h2>
    <c:forEach items="${functionList}" var="functionList">
        <ul style="display:block">
            <li><a href="${functionList.functionAddress}" target="right"><span
                    class="icon-caret-right"></span>${functionList.functionName}</a></li>
        </ul>
    </c:forEach>--%>

</div>
<script type="text/javascript">

    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        })
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        })
    });
</script>
<ul class="bread">
    <li><a href="welcomePage.do" target="right" class="icon-home"> 首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a href="##">英文</a></li>
</ul>
<div class="admin">
    <iframe scrolling="auto" rameborder="0" src="welcomePage.do" name="right" width="100%" height="100%"></iframe>
</div>
<div style="text-align:center;">
    <p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
</body>
</html>